package pojo;

import java.util.Date;

/**
 * 评论实体类
 */
public class Comment {
    private Integer commentId;

    private Integer commentArticleId;

    private Integer commentUserId;

    private Integer commentParentId;

    private Integer commentGreat;

    private Date commentDate;

    private Byte commentRead;

    private String commentContent;

    private User commentator;

    private Comment commentParent;

    private Byte commentAccept;

    private Integer commentReplyUserId;

    private String commentArticleName;

    private Article article;

    private String commentUrl;

    private Byte commentStatus;

//    private Integer commentPage;//该评论位于评论页的第几页

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Integer getCommentArticleId() {
        return commentArticleId;
    }

    public void setCommentArticleId(Integer commentArticleId) {
        this.commentArticleId = commentArticleId;
    }

    public Integer getCommentUserId() {
        return commentUserId;
    }

    public void setCommentUserId(Integer commentUserId) {
        this.commentUserId = commentUserId;
    }

    public Integer getCommentParentId() {
        return commentParentId;
    }

    public void setCommentParentId(Integer commentParentId) {
        this.commentParentId = commentParentId;
    }

    public Integer getCommentGreat() {
        return commentGreat;
    }

    public void setCommentGreat(Integer commentGreat) {
        this.commentGreat = commentGreat;
    }

    public Date getCommentDate() {
        return commentDate;
    }

    public void setCommentDate(Date commentDate) {
        this.commentDate = commentDate;
    }

    public Byte getCommentRead() {
        return commentRead;
    }

    public void setCommentRead(Byte commentRead) {
        this.commentRead = commentRead;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent == null ? null : commentContent.trim();
    }

    public User getCommentator() {
        return commentator;
    }

    public void setCommentator(User commentator) {
        this.commentator = commentator;
    }

    public Comment getCommentParent() {
        return commentParent;
    }

    public void setCommentParent(Comment commentParent) {
        this.commentParent = commentParent;
    }

    public Byte getCommentAccept() {
        return commentAccept;
    }

    public void setCommentAccept(Byte commentAccept) {
        this.commentAccept = commentAccept;
    }

    public Integer getCommentReplyUserId() {
        return commentReplyUserId;
    }

    public void setCommentReplyUserId(Integer commentReplyUserId) {
        this.commentReplyUserId = commentReplyUserId;
    }

    public String getCommentArticleName() {
        return commentArticleName;
    }

    public void setCommentArticleName(String commentArticleName) {
        this.commentArticleName = commentArticleName;
    }

    public Article getArticle() {
        return article;
    }

    public void setArticle(Article article) {
        this.article = article;
    }

    public String getCommentUrl() {
        return commentUrl;
    }

    public void setCommentUrl(String commentUrl) {
        this.commentUrl = commentUrl;
    }

    public Byte getCommentStatus() {
        return commentStatus;
    }

    public void setCommentStatus(Byte commentStatus) {
        this.commentStatus = commentStatus;
    }
}